﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SetListManager.Models.Band>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>band Details</h1>

    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">BandID</div>
        <div class="display-field"><%: Model.BandID %></div>
        
        <div class="display-label">Name</div>
        <div class="display-field"><%: Model.Name %></div>
    </fieldset>


    <h2>Song List</h2>

    <table>
        <tr>
            <th>
                ID
            </th>
            <th>Band</th>
            <th>
                Title
            </th>
            <th>
                Key
            </th>
            <th>
                Soloist
            </th>
            <th>
                Tempo
            </th>
            <th>
                Genre
            </th>
            <th>
                Duration
            </th>
            <th>
                Usage
            </th>
            <th>
                Notes
            </th>
        </tr>

    <% %>
    <% foreach (var song in Model.Songs) { %>
    
        <tr>
            <td>
                <%: song.BandID %>
            </td>
            <td><%: song.Band.Name %>
            </td>
            <td>
                <%: song.Title %>
            </td>
            <td>
                <%: song.Key %>
            </td>
            <td>
                <%: song.Soloist %>
            </td>
            <td>
                <%: song.Tempo %>
            </td>
            <td>
                <%: song.Genre %>
            </td>
            <td>
                <%: song.DurationStr %>
            </td>
            <td>
                <%: song.Usage %>
            </td>
            <td>
                <%: song.Note %>
            </td>
        </tr>
    
    <% } %>

    </table>

        
    <p>
        <%: Html.ActionLink("Edit", "Edit", new { id=Model.BandID }) %> |
        <%: Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

